#ifndef MDMAIN_H_
#define MDMAIN_H_
#pragma once

#include <iostream>
#include "windows.h"
#include "mdspi.h"
#include "mdapi.h"
//using namespace std;


class CMd
{
public:
	CMd(CtpMdApi* papi, CtpMdSpi* pspi):m_papi(papi), m_pspi(pspi){};
	~CMd()
	{
		if (NULL != m_papi)
			delete m_papi;

		if (NULL != m_pspi)
			delete m_pspi;
	};

public:
	CtpMdApi* m_papi;
	CtpMdSpi* m_pspi;
};

//(out)this part used for nonqtmain.h
CMd* md_main(char* pborkeid, char* puserid, char* ppassword, char* pMDFront, int type);

#endif